package com.easybacklog.client.webservices;

import com.easybacklog.client.EasyBacklogGlobalVariables;
import com.easybacklog.client.model.Project;
import com.easybacklog.client.webservices.git.RequestListGitFeatureFiles;
import com.easybacklog.client.webservices.subversion.RequestSubversionListFeatures;

public class LoadFeatureFiles {

	public LoadFeatureFiles() {

		if (Project.REPOSITORY_TYPE_SUBVERSION
				.equals(EasyBacklogGlobalVariables.currentProject
						.getRepositoryType())) {

			String featuresUrl = EasyBacklogGlobalVariables.currentProject
					.getRepositoryURL()
					+ "/"
					+ EasyBacklogGlobalVariables.featuresPath;

			RequestSubversionListFeatures.getJsonpRequest(featuresUrl);

		} else if (Project.REPOSITORY_TYPE_GIT
				.equals(EasyBacklogGlobalVariables.currentProject
						.getRepositoryType())) {

			RequestListGitFeatureFiles
					.getJsonpRequest(EasyBacklogGlobalVariables.currentProject);

		} else if (Project.REPOSITORY_TYPE_LOCAL
				.equals(EasyBacklogGlobalVariables.currentProject
						.getRepositoryType())) {

		}
	}
}
